package com.example.common;

import java.util.Arrays;
import java.util.List;

/**
 * @author hongda.lin
 * @date 2025-3-5
 * todo 增加删除deleted字段
 */
public final class Lib {

    public static final List<String> FIELD_CREATE_ARRAY = Arrays.asList(Lib.FIELD_CREATE_TIME, Lib.FIELD_CREATE_USER_ID, Lib.FIELD_CREATE_USER_NAME);
    public static final List<String> FIELD_CREATE_ARRAY_AND_DELETED = Arrays.asList(Lib.FIELD_CREATE_TIME, Lib.FIELD_CREATE_USER_ID, Lib.FIELD_CREATE_USER_NAME);

    public static final String FIELD_CREATE_TIME = "createTime";
    public static final String FIELD_CREATE_USER_ID = "createUserId";
    public static final String FIELD_CREATE_USER_NAME = "createUserName";
    public static final String FIELD_UPDATE_TIME = "updateTime";
    public static final String FIELD_UPDATE_USER_ID = "updateUserId";
    public static final String FIELD_UPDATE_USER_NAME = "updateUserName";
    /**
     * 逻辑删除字段
     */
    public static final String FIELD_DELETED = "deleted";
    public static final String DELETED = Lib.STR_YES;
    public static final String UN_DELETED = Lib.STR_NO;

    /**
     * 逻辑删除字段全部选项
     */
    public static final List<String> DELETED_OPTIONS = Arrays.asList(Lib.STR_YES, Lib.STR_NO);

    /**
     * 字符布尔-是
     */
    public static final String TRUE = "true";

    /**
     * 字符布尔-否
     */
    public static final String FALSE = "false";
    /**
     * 是
     */
    public static final Integer YES = 1;

    /**
     * 否
     */
    public static final Integer NO = 0;

    /**
     * 字符逻辑-是
     */
    public static final String STR_YES = "1";

    /**
     * 字符逻辑-否
     */
    public static final String STR_NO = "0";

    private Lib() {
    }
}
